<!DOCTYPE html>
<html>
<head>
<include file="Include:meta" />
<title>项目款项详情-目的地运营集团数据管理平台</title>
<include file="Include:style" />
<include file="Include:javascript" />
<style>
    .hidden{ display: none; }
    .form_table td{ height: 24px; }
    .form_table .form_table_left{ min-width: 80px; }
    .form_table .form_table_left.active{ vertical-align: top; padding-top: 13px; }
    .form_table tr:last-child td{ border: none; }
    .form_label{ width: 80px; }
    .function{ position: relative; }
    .cut{ padding-top: 45px; }
    .xq .tit{ padding-bottom: 15px; color: #333; font-size: 16px; border-bottom: 1px solid #e4e4e4; padding-top: 25px; }
</style>
</head>
<body style="background: #f3f3f3;">
<div class="header">
	<a class="back_btn" href="{$url}"></a>
    项目款项详情
</div>
<div class="content">
    <div class="meeting_cont">
        <div class="form_table all mb10 toptable">
            <table cellspacing="0">
                <tr>
                    <td class="form_table_left">项目编号</td>
                    <td class="form_table_right">{$main['project_num']}</td>
                </tr>
                <tr>
                    <td class="form_table_left">项目名称</td>
                    <td class="form_table_right"><div class="right_text">{$main['project_name']}</div></td>
                </tr>
                <tr>
                    <td class="form_table_left">所属中心</td>
                    <td class="form_table_right">{$main['center_name']}</td>
                </tr>
                <tr>
                    <td class="form_table_left">合同金额</td>
                    <td class="form_table_right">{$main['contract_money']}</td>
                </tr>
                <tr>
                    <td class="form_table_left">合同日期</td>
                    <td class="form_table_right">{$main['contract_date']}</td>
                </tr>
                <tr>
                    <td class="form_table_left">合同附件</td>
                    <td class="form_table_right"><div class="right_text"><a href="{$main['file_url']}" target="_blank" class="file">{$main['file_name']}</a></div></td>
                </tr>
                <tr>
                    <td class="form_table_left">添加人</td>
                    <td class="form_table_right">{$main['add_user']}({$main['add_date']|substr=0,10})</td>
                </tr>
            </table>
        </div>
        <div class="function">
            <div class="cut_menu_line abs">
                <a class="active" href="javascript:;" uid="{$vo['uid']}" mid="{$result['id']}">当前款项详情<img src="__PUBLIC__/mobile/images/index/arrow_top.png" alt=""><span></span></a><a href="javascript:;" uid="{$vo['uid']}" mid="{$result['id']}">全部款项阶段<img src="__PUBLIC__/mobile/images/index/arrow_top.png" alt=""><span></span></a>
            </div>
            <div class="cut">
                <div class="box xq">
                    <if condition="$ticket neq NUll">
                        <div class="form_table all mb10">
                            <table cellspacing="0">
                                <tr>
                                    <td class="form_table_left">款项阶段</td>
                                    <td class="form_table_right">第{$ticket['stage']}阶段</td>
                                </tr>
                                <tr>
                                    <td class="form_table_left">该阶段应开票金额</td>
                                    <td class="form_table_right">{$ticket['ticket_money']}</td>
                                </tr>
                                <tr>
                                    <td class="form_table_left">该阶段已开票金额</td>
                                    <td class="form_table_right">{$ticket['ykp']}</td>
                                </tr>
                                <tr>
                                    <td class="form_table_left">本次开票金额</td>
                                    <td class="form_table_right">{$ticket['money']}</td>
                                </tr>
                                <tr>
                                    <td class="form_table_left">本次开票日期</td>
                                    <td class="form_table_right">{$ticket['date']}</td>
                                </tr>
                                <tr>
                                    <td class="form_table_left">发票编号</td>
                                    <td class="form_table_right">{$ticket['invoice']}</td>
                                </tr>
                                <tr>
                                    <td class="form_table_left">添加人</td>
                                    <td class="form_table_right">{$ticket['add_user']}({$ticket['add_date']|substr=0,10})</td>
                                </tr>
                            </table>
                        </div>
                    </if>
                    <if condition="$money neq NUll">
                        <div class="form_table all mb10">
                            <table cellspacing="0">
                                <tr>
                                    <td class="form_table_left">发票编号</td>
                                    <td class="form_table_right">{$money['invoice']}</td>
                                </tr>
                                <tr>
                                    <td class="form_table_left">该发票编号开票金额</td>
                                    <td class="form_table_right">{$money['fmoney']}</td>
                                </tr>
                                <tr>
                                    <td class="form_table_left">该发票编号开票日期</td>
                                    <td class="form_table_right">{$money['fdate']}</td>
                                </tr>
                                <tr>
                                    <td class="form_table_left">该发票编号已收款金额</td>
                                    <td class="form_table_right">{$money['ysk']}</td>
                                </tr>
                                <tr>
                                    <td class="form_table_left">本次收款金额</td>
                                    <td class="form_table_right">{$money['money']}</td>
                                </tr>
                                <tr>
                                    <td class="form_table_left">本次收款日期</td>
                                    <td class="form_table_right">{$money['date']}</td>
                                </tr>
                                <tr>
                                    <td class="form_table_left">添加人</td>
                                    <td class="form_table_right">{$money['add_user']}({$money['add_date']|substr=0,10})</td>
                                </tr>
                            </table>
                        </div>
                    </if>
                </div>
                <div class="box hidden">
                    <div class="finacial_det">
                        <div class="jd_list">
                            <foreach name="main['stage']" item="vo">
                                <div class="tit">第{$vo['stage']}阶段<span>百分比：{$vo['bili']}</span></div>
                                <table>
                                    <tr>
                                        <td><p>应收款金额</p><span>{$vo['stage_money']}</span></td>
                                        <td><p>应开票金额</p><span>{$vo['ticket_money']}</span></td>
                                        <td><p>预警日期</p><span>{$vo['warn_date']}</span></td>
                                    </tr>
                                    <tr>
                                        <td><p>应收款日期</p><span>{$vo['stage_date']}</span></td>
                                        <td><p>应开票日期</p><span>{$vo['ticket_date']}</span></td>
                                        <td><p>催款日期</p><span>{$vo['press_date']}</span></td>
                                    </tr>
                                </table>
                            </foreach>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(function(){
        $('.cut_menu_line a').each(function(i){
            $(this).click(function(){
                $(this).addClass('active').siblings().removeClass('active');
                $('.box').eq(i).fadeIn().siblings().hide();
            })
        })
        $('.box .right_text').each(function(){
            var ht = $(this).height();
            if(ht>22){
                $(this).addClass('active');
                $(this).parents('tr').find('.form_table_left').addClass('active');
            }
        })
		var size = $('.sub_btn').size();
		if(size>0){
			$('.meeting_cont').addClass('active')
		}
		if(size>2){
			$('.two').addClass('three')
		}
        
        $(window).scroll(function(){
            var top = $(window).scrollTop();
            if(top>$('.toptable').height()+8){
                $('.cut_menu_line').addClass('active');
            }else{
                $('.cut_menu_line').removeClass('active')
            }
        })
    })
</script>
</body>
</html>